<!doctype html>
<html>
<?php echo $this->fetch('head.html'); ?>

<body>
  <script src="<?php echo $this->_var['skins']; ?>js/jquery.blocksit.min.js"></script>
<div class="fullscreen">
  <div class="scroll_content">
    <div class="topfixed">
      <div class="t_left"><a href="/index.php?m=tejia"><i class="back"></i></a></div>
      <div class="t_main">商品详情</div>
      
    </div>
    <div class="paddingheight"></div>
    <div class="comblock">
      <div class="flexslider">
      <?php $this->assign("imgsdata",M("imgs")->get("tejia","".$this->_var["product"]["id"]."")); ?>
     
        <ul class="slides clearfix">
         <?php if ($this->_var['imgsdata']): ?>
        <?php $_from = $this->_var['imgsdata']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
          <li><a href="javascript:;"><img class="img" src="<?php echo images_site($this->_var['c']['imgurl']); ?>"></a> </li>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
        <?php else: ?>
        	 <li><a href="javascript:;"><img class="img" src="<?php echo images_site($this->_var['product']['imgurl']); ?>.middle.jpg" onerror="error_img_url(this,2)"></a> </li>
        <?php endif; ?>
        </ul>
      </div>
      <div class="product_show" style="position:relative;">
        <p class="tit"><?php echo $this->_var['product']['title']; ?></p>
        <p class="price">价格：￥<b class="red"><?php echo $this->_var['product']['price']; ?></b></p>
        <p class="num"> 本月已售：100 份
        
        </p>
        <a href="/index.php?m=tejia_order&a=buy&id=<?php echo $this->_var['product']['id']; ?>" style="float:right; position:absolute; bottom:5px; right:10px; display:inline-block; padding:6px 10px; background-color:#FF4600; text-decoration:none; color:#fff; border-radius:5px; margin-bottom:10px;">立即抢购</a> 
      </div>
    </div>
    
    <div class="comblock"> 产品详情：<br>
   <?php echo $this->_var['product']['content']; ?>
    </div>
  </div>
</div>
 
 
 <?php echo $this->fetch('footer.html'); ?> 
</body>
</html>
